package com.atdel.demo23;


/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo23
 * @Author: Del
 * @CreateTime: 2025-03-19  09:33
 * @Description: TODO
 * @Version: 1.0
 */
public class Student {
    private int id;
    private String name;
    private int age;

    private Double score;

    public Student() {
    }


    public Student(String name, int age, Double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public Student(int id, String name, int age, Double score) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {

        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                ", id=" + id +
                '}';
    }
}
